package test;

import com.DBservice.DBservice;
import com.Students.dao.impl.StudentDao;
import com.Students.pojo.Student;

public class test {
    public static void main(String[] args) {
        DBservice dBservice = new DBservice();
        dBservice.getconn();
        Student student = new Student();
        StudentDao studentDao = new StudentDao();
        try{
            student.setStu_ID("0102180401");
            student.setStu_name("于全");
            student.setStu_clazz("18计算机四班");
            student.setStu_phone("13704495992");
            studentDao.add(student);
        }catch (Exception e){
            e.printStackTrace();
            System.out.println("数据导入失败");
        }finally {
            System.out.println("操作完成");
        }

    }
}
